const Koa = require('koa')
const app = new Koa()
const path = require('path')

const main = (ctx) => {
    console.log(__dirname);
    ctx.response.body = path.join(__dirname + '/demo12.js')
}

app.use(main)
app.listen(3000, () => {
  console.log('项目已启动');
})